package com.yunji.product.service;

import com.yunji.common.model.cache.ProductAttrCacheDTO;
import com.yunji.product.bo.ProductAttrsListQueryBO;
import com.yunji.product.domain.ProductAttrDO;

import java.util.List;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.product.service
 * @Title: IProductAttrsService
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-08-15 10:29:30      V1.0        HuaAo       新建类
 */

public interface IProductAttrsService {

    boolean create(ProductAttrDO productAttr);

    List<ProductAttrDO> search(ProductAttrsListQueryBO bo);

    int statsOfProductAttr(Long... ids);

    void deleteByProductIds(Long... ids);

    List<ProductAttrCacheDTO> listCacheByProductId(Long productId);
}